#!/usr/bin/python
# -*- coding: UTF-8 -*-

from scripts.GoogleHacker import Google_Hacker
import sys

def main():
	try:
		domain_name = sys.argv[1]
	except IndexError:
		print("[!] ERROR: Usage: $python[3] run.py DomainName\nRemember to set HTTP_PROXY if you live in China.")
		exit()
	try:
		Google_Hacker(domain_name)
	except ConnectionRefusedError:
		print("[!] ERROR: Oh NO ! You can not connect to Google")
		exit()
	print("[*] INFO: Done")

if __name__ == '__main__':
	main()